import request from "@/utils/request"

export function createOrder(data){
    return request({
        url: '/holiday/add',
        method: 'post',
        headers:{
            'Content-Type': 'application/json;charset=utf-8'
        },
        data
    })
}

//公司领导查询
export function selectOrderByLeader(data){
    return request({
        url: '/user/generalmanager',
        method: 'post',
        headers:{
            'Content-Type': 'application/json;charset=utf-8'
        },
        data
    })
}

//分管领导查询(副总)
export function selectOrderByFG(data){
    return request({
        url: '/user/assistant',
        method: 'post',
        headers:{
            'Content-Type': 'application/json;charset=utf-8'
        },
        data
    })
}

//部门正职审批、销假
export function auditOrder(data){
    return request({
        url: '/holiday/handler',
        method: 'post',
        headers:{
            'Content-Type': 'application/json;charset=utf-8'
        },
        data
    })
}

//待办清单
export function todoList(data){
    return request({
        url: '/holiday/todo',
        method: 'post',
        headers:{
            'Content-Type': 'application/json;charset=utf-8'
        },
        data
    })
}
